﻿Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports DTO
Imports DAO
Public Class NhanVienBUS
    Public Function GetTable() As DataTable
        Dim nv As New NhanVienDAO()
        Return nv.GetTable()
    End Function

    Public Function TimTheoTen(ByVal ten As String) As DataTable
        Dim nv As New NhanVienDAO()
        Return nv.TimTheoTen(ten)
    End Function

    Public Function TimTheoMa(ByVal ma As String) As DataTable
        Dim nv As New NhanVienDAO()
        Return nv.TimTheoMa(ma)
    End Function

    Public Sub Them(ByVal nv As NhanVienDTO)
        Dim s As New NhanVienDAO()
        s.Them(nv)
    End Sub

    Public Sub Xoa(ByVal ma As String)
        Dim s As New NhanVienDAO()
        s.Xoa(ma)
    End Sub

    Public Sub CapNhat(ByVal nv As NhanVienDTO)
        Dim s As New NhanVienDAO()
        s.CapNhat(nv)
    End Sub
End Class
